//
//  HomeCategoryCell.m
//  Geography
//
//  Created by RJET04 on 2023/8/21.
//

#import "HomeCategoryCell.h"

@implementation HomeCategoryCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setupUI];
    }
    return self;
}

- (void)setupUI
{
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.backgroundColor = [UIColor clearColor];
    self.contentView.backgroundColor = [UIColor clearColor];
    self.itemLab = [ZYLabel createZYLabel:^(ZYLabel *label) {
        label
        .frameBlock(CGRectMake(12, 0, SCREEN_WIDTH-2*24, 45))
        .textAlignmentBlock(NSTextAlignmentLeft)
        .textBlock(NSLocalizedString(@"startLabLab", @"测试"))
        .backGroundColorBlock([UIColor clearColor])
        .fontBlock([UIFont systemFontOfSize:16]);
    }];
    [self.contentView addSubview:self.itemLab];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
